import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/double_control/get_task_practicable_status_entity.dart';

GetTaskPracticableStatusEntity $GetTaskPracticableStatusEntityFromJson(Map<String, dynamic> json) {
  final GetTaskPracticableStatusEntity getTaskPracticableStatusEntity = GetTaskPracticableStatusEntity();
  final int? notImplemented = jsonConvert.convert<int>(json['notImplemented']);
  if (notImplemented != null) {
    getTaskPracticableStatusEntity.notImplemented = notImplemented;
  }
  final int? implemented = jsonConvert.convert<int>(json['implemented']);
  if (implemented != null) {
    getTaskPracticableStatusEntity.implemented = implemented;
  }
  return getTaskPracticableStatusEntity;
}

Map<String, dynamic> $GetTaskPracticableStatusEntityToJson(GetTaskPracticableStatusEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['notImplemented'] = entity.notImplemented;
  data['implemented'] = entity.implemented;
  return data;
}

extension GetTaskPracticableStatusEntityExtension on GetTaskPracticableStatusEntity {
  GetTaskPracticableStatusEntity copyWith({
    int? notImplemented,
    int? implemented,
  }) {
    return GetTaskPracticableStatusEntity()
      ..notImplemented = notImplemented ?? this.notImplemented
      ..implemented = implemented ?? this.implemented;
  }
}
